import { ObjectType, Field } from '@nestjs/graphql';
import { AuthorVo } from '../../authors/vo/author.vo';
@ObjectType()
export class BookVo {
  @Field(() => String)
  book_id: string;
  @Field(() => String)
  book_title: string;
  @Field(() => String, { nullable: true })
  publication_year: number;
  @Field(() => String, { nullable: true })
  author_id: string;
  @Field(() => AuthorVo, { nullable: true })
  author: AuthorVo;
}